core: We actually want rdev, not dev for devices
authorColin Walters <walters@verbum.org>
Tue, 15 Nov 2011 20:15:46 +0000 (15:15 -0500)
committerColin Walters <walters@verbum.org>
Tue, 15 Nov 2011 20:15:46 +0000 (15:15 -0500)
src/libostree/ostree-core.c

index ca0fb1f537ab733fd59d76e2e5127304b8161f86..0d7c6d8701f5877209ea493c966102eae2a2e3cb 100644 (file)
@@ -479,7 +479,7 @@ ostree_pack_object (GOutputStream     *output,
         }
       else if (S_ISBLK (mode) || S_ISCHR (mode))
         {
-          device = g_file_info_get_attribute_uint32 (finfo, G_FILE_ATTRIBUTE_UNIX_DEVICE);
+          device = g_file_info_get_attribute_uint32 (finfo, G_FILE_ATTRIBUTE_UNIX_RDEV);
           object_size = 4;
         }
       else if (S_ISFIFO (mode))